package com.bingxue.edu.management.shop.model.resp;

import com.bingxue.edu.management.shop.model.entity.Coupon;
import com.mybatisflex.annotation.RelationManyToOne;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "优惠卷信息")
public class CouponResp extends Coupon {

    @Schema(description = "优惠券名称")
    private String couponTemplateName;

    @Schema(description = "家长名称")
    private String parentName;

    @Schema(description = "家长手机")
    private String parentPhone;

    @Schema(description = "发放人名称")
    @RelationManyToOne(selfField = "createUser", targetTable = "base_employee", targetField = "id" , valueField = "name")
    private String createUserName;

}
